import java.io.*;
import java.util.*;

public class Monstre {
		String nom;
		int attaque=0;
		int parade=0;	
		int ev=0;
		int pr=0;
		String dmg;
		int courage=0;
		int exp=0;
		String note;

	public Monstre(String nom, int attaque, int parade, int ev, int pr,
				String dmg, int courage, int exp, String note) {
			super();
			this.nom = nom;
			this.attaque = attaque;
			this.parade = parade;
			this.ev = ev;
			this.pr = pr;
			this.dmg = dmg;
			this.courage = courage;
			this.exp = exp;
			this.note = note;
		}

	public int getCourage() {
		return courage;
	}

	public void setCourage(int courage) {
		this.courage = courage;
	}

	public int getEv() {
		return ev;
	}

	public void setEv(int ev) {
		this.ev = ev;
	}

	public int getAttaque() {
		return attaque;
	}

	public void setAttaque(int attaque) {
		this.attaque = attaque;
	}

	public int getPr() {
		return pr;
	}

	public void setPr(int pr) {
		this.pr = pr;
	}

	public int getParade() {
		return parade;
	}

	public void setParade(int parade) {
		this.parade = parade;
	}

	public String getDmg() {
		return dmg;
	}

	public void setDmg(String dmg) {
		this.dmg = dmg;
	}

	public String getNote() {
		return note;
	}

	public void setNote(String note) {
		this.note = note;
	}

	public String getNom() {
		return nom;
	}

	public void setNom(String nom) {
		this.nom = nom;
	}

	public int getExp() {
		return exp;
	}

	public void setExp(int exp) {
		this.exp = exp;
	}
	
	

	@Override
	public String toString() {
		return "Monstre [nom=" + nom + ", attaque=" + attaque + ", parade="
				+ parade + ", ev=" + ev + ", pr=" + pr + ", dmg=" + dmg
				+ ", courage=" + courage + ", exp=" + exp + ", note=" + note
				+ "]";
	}

	public static void main(String[] args){
		List<Monstre> monstres =new ArrayList<Monstre>();
		
		try{
			
			
			//lecture du fichier
			InputStream flux=new FileInputStream("mobs.csv"); 
			InputStreamReader lecture=new InputStreamReader(flux);
			BufferedReader buff=new BufferedReader(lecture);
			
			
			
			String ligne;
			ligne = buff.readLine();
				
			while ((ligne=buff.readLine())!=null){
				String[] tab = ligne.split("\t");
				
				monstres.add(new Monstre(tab[0], Integer.parseInt(tab[1]), Integer.parseInt(tab[2]), Integer.parseInt(tab[3]), Integer.parseInt(tab[4]), tab[5], Integer.parseInt(tab[6]), Integer.parseInt(tab[7]), tab[8]));

			}
			
			System.out.println(monstres.toString());
			buff.close(); 
			}  
			catch (Exception e){
			System.out.println(e.toString());
			}
	}
}
	
